import request from '../utils/request';

export const fetchData = query => {
    return request({
        url: './table.json',
        method: 'get',
        params: query
    });
};
export const getData = (url,query,query1) => {
    return request.get(url,{params:query},query1);
};
export const putData = (url,query) => {
    return request.put(url,query);
};
export const postData = (url,query) => {
    return request.post(url,query);
};
export const deleteData = (url,query) => {
    return request.delete(url,query);
};